package edu.zjut.hjg.saas.biz.model;

import java.util.Date;

public class Consumption {
    private Integer   id;
    private Tenant    tenant    = new Tenant();
    private Subscribe subscribe = new Subscribe();
    private Double    spend;
    private String    description;
    private Date      occurTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Tenant getTenant() {
        return tenant;
    }

    public void setTenant(Tenant tenant) {
        this.tenant = tenant;
    }

    public Subscribe getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(Subscribe subscribe) {
        this.subscribe = subscribe;
    }

    public Double getSpend() {
        return spend;
    }

    public void setSpend(Double spend) {
        this.spend = spend;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getOccurTime() {
        return occurTime;
    }

    public void setOccurTime(Date occurTime) {
        this.occurTime = occurTime;
    }

    @Override
    public String toString() {
        return "Consumption [description=" + description + ", id=" + id + ", occurTime="
                + occurTime + ", spend=" + spend + ", subscribe=" + subscribe + ", tenant="
                + tenant + "]";
    }
}
